#include "NT_API.h"
NTSTATUS WINAPI m_NtQueryInformationProcess(
	HANDLE ProcessHandle,
	DWORD ProcessInformationClass,
	PVOID ProcessInformation,
	ULONG ProcessInformationLength,
	PULONG ReturnLength
)
{
	HMODULE hNtdll = GetModuleHandleA("ntdll.dll");
	if (!hNtdll)
	{
		hNtdll = LoadLibraryA("ntdll.dll");
	}
	_NtQueryInformationProcess pNtQueryInformationProcess = (_NtQueryInformationProcess)GetProcAddress(hNtdll, "NtQueryInformationProcess");
	return pNtQueryInformationProcess(ProcessHandle, ProcessInformationClass, ProcessInformation, ProcessInformationLength, ReturnLength);
}
NTSTATUS WINAPI m_NtUnmapViewOfSection(
	HANDLE ProcessHandle,
	PVOID BaseAddress
)
{
	HMODULE hNtdll = GetModuleHandleA("ntdll.dll");
	if (!hNtdll)
	{
		hNtdll = LoadLibraryA("ntdll.dll");
	}
	_NtUnmapViewOfSection pNtUnmapViewOfSection = (_NtUnmapViewOfSection)GetProcAddress(hNtdll, "NtUnmapViewOfSection");
	return pNtUnmapViewOfSection(ProcessHandle, BaseAddress);
}